package com.wze.wze;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin //解决跨域
@RestController //控制器注解
@RequestMapping("/Test/")//请求路径

public class TestController {
   @GetMapping("Test")//get类型的请求
    private String Test(){
       return "这是我的第一个SpringBoot项目";
   }

}
